<?php /* Smarty version Smarty-3.1.18, created on 2017-05-17 09:46:46
         compiled from "/data/www/mystery/protected/modules/webadmin/views/progress/schedule.tpl" */ ?>
<?php /*%%SmartyHeaderCode:79094243554c4c5e8a969a0-46724245%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8ea682695e078a2ba615b2a95bd52229876cd6a8' => 
    array (
      0 => '/data/www/mystery/protected/modules/webadmin/views/progress/schedule.tpl',
      1 => 1494904923,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '79094243554c4c5e8a969a0-46724245',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_54c4c5e8b0c484_00016159',
  'variables' => 
  array (
    'params' => 0,
    'list' => 0,
    'val' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_54c4c5e8b0c484_00016159')) {function content_54c4c5e8b0c484_00016159($_smarty_tpl) {?><?php if (!is_callable('smarty_function_math')) include '/data/www/mystery/protected/extensions/Smarty/plugins/function.math.php';
if (!is_callable('smarty_modifier_date_format')) include '/data/www/mystery/protected/extensions/Smarty/plugins/modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("../common/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<table width="100%" border="0" cellspacing="0">
 <tr>
    <td width="13%" valign="top">
            <?php echo $_smarty_tpl->getSubTemplate ("../common/left.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

    </td>
    <td width="87%" valign="top">
					
            <table width="100%" border="0" cellspacing="0">
              <tr>
                    <td>
                        <form name="myform" action="/webadmin/progress/schedule" method="get" id="myform">
                            <div class="explain-col">
                            项目名称：
                            <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['params']->value['project_name'];?>
" class="input-text" name="project_name">
                            <input type="submit" value="搜索" class="button" name="dosubmit">
                            </div>
                        </form> 

                        <div class="pad_10">
                          <div class="table-list">
                          <table width="100%">
                                <thead>
                                  <tr>
                                        <th width="141">项目编号</th>
                                        <th width="566" align="left">项目名称</th>
                                        <th width="61">问卷数量</th>
                                        <th width="100">进度</th>
                                        <th width="120">更新时间</th>
                                  </tr>
                                </thead>
                                <tbody>
                                   <?php if ($_smarty_tpl->tpl_vars['list']->value) {?>
                                  <?php  $_smarty_tpl->tpl_vars['val'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['val']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['val']->key => $_smarty_tpl->tpl_vars['val']->value) {
$_smarty_tpl->tpl_vars['val']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['val']->key;
?>
                                  <tr>
                                        <td align="center"><?php echo $_smarty_tpl->tpl_vars['val']->value['project_num'];?>
</td>
                                        <td align="left">
                                                <a style="color:#b73632;" href="/webadmin/progress/projectQuestion?project_id=<?php echo $_smarty_tpl->tpl_vars['val']->value['project_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['val']->value['project_name'];?>
</a> 
                                        </td>
                                        <td align="center"><?php if ($_smarty_tpl->tpl_vars['val']->value['question_num']) {?><?php echo $_smarty_tpl->tpl_vars['val']->value['question_num'];?>
<?php } else { ?>0<?php }?></td>
                                        <td align="center"><?php if ($_smarty_tpl->tpl_vars['val']->value['question_num']) {?><?php echo smarty_function_math(array('equation'=>"x/y*100",'x'=>$_smarty_tpl->tpl_vars['val']->value['complete_num'],'y'=>$_smarty_tpl->tpl_vars['val']->value['question_num'],'format'=>"%.2f"),$_smarty_tpl);?>
%<?php } else { ?>0%<?php }?></td>
                                        <td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['val']->value['update_time'],"%Y-%m-%d %H:%M:%S");?>
</td>
                                  </tr>
                                  <?php } ?>
                                  <?php } else { ?>
                                  <tr><td colspan="5">无项目</td></tr>
                                  <?php }?>
                                </tbody>
                          </table>
                                <div style="float:right;"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
                          </div>
                        </div>
                    </td>
              </tr>
            </table>
    	</td>
 </tr>
</table>
<?php echo $_smarty_tpl->getSubTemplate ("../common/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
